package main

import (
	"math/rand"
)

func get_random(floor, ceiling int) int {
	if floor >= ceiling {
		return 0
	}
	ret := rand.Intn(ceiling-floor) + floor
	return ret
}

func Shuffle(cards []int32) []int32 {
	for i := len(cards) - 1; i > 1; i-- {
		idx := get_random(0, i-1)
		cards[i], cards[idx] = cards[idx], cards[i]
	}
	return cards
}
